import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.*;
import javax.servlet.http.*;


public class HelloWorld extends HttpServlet {

    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }


    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException   {
        response.setContentType("text/html; charset=GBK");
        PrintWriter out= response.getWriter();
        out.println("<html>" +
                "<title>第一个servlet程序</title>"+
                "<body> " +
                "<h2>你好，我就是你！</h2>" +
                "</body>" +
                "</html>");
    }
}
